<?php
/**
 * Short description for serve.php
 *
 * @package serve
 * @author zhenyangze <zhenyangze@gmail.com>
 * @version 0.1
 * @copyright (C) 2023 zhenyangze <zhenyangze@gmail.com>
 * @license MIT
 */

if (stristr($_SERVER["REQUEST_URI"], '/static/')
    ||
    preg_match('/\.(?:css|js|jpeg|png|jpg)$/', $_SERVER["PHP_SELF"])
) {
    return false;
}
require 'index.php';